﻿using B.S.DataBase.MyProject.Domain.PatientMobileDevice;
using B.S.DataBase.MyProject.ErrorCode;
using MediatR;
using SqlSugar;

namespace MedicalPCTerminal.Read.API.Appcation.Commands.TroubleCommand
{
    /// <summary>
    /// 聊天列表查询命令
    /// </summary>
    public class GetChatListItemCommand:IRequest<APIResult<List<ChatListItem>>>
    {
        /// <summary>
        /// 聊天编号
        /// </summary>
        public int? ChatListItemID { get; set; }

        /// <summary>
        /// 患者ID
        /// </summary>
        public string? PatientId { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string? UserName { get; set; }

        /// <summary>
        /// 角色（0-医生，1-患者）
        /// </summary>
        public int? Role { get; set; }

        /// <summary>
        /// 搜索关键字
        /// </summary>
        public string? Keyword { get; set; }
    }
}
